package com.aspose.cells;

class zalb implements zahe {
   private Object a;
   private boolean b;
   private zxp c;
   private zig d;
   private com.aspose.cells.b.a.b.zg e;
   private boolean f = true;
   private Color g;
   private int h;
   private String i;
   private zbam j = new zbam();
   private int k;
   private zbcq l;
   private zbtu m;
   private boolean n = false;

   zalb(zig var1, Object var2, int var3) {
      this.d = var1;
      this.a = var2;
      this.h = var3;
      this.b = false;
      this.f = true;
      this.c = new zxp();
   }

   public boolean b() {
      return this.b;
   }

   public void a(boolean var1) {
      this.b = var1;
   }

   public com.aspose.cells.b.a.b.zg c() {
      if (this.e == null) {
         if (this.a instanceof zakx) {
            this.e = ((zakx)this.a).c().f();
         } else if (this.a instanceof ziq) {
            this.e = ((ziq)this.a).b();
         } else {
            this.e = zbuk.a(this.d.ac());
         }
      }

      if (!this.a().d() && !this.a().c()) {
         return this.e;
      } else {
         com.aspose.cells.b.a.b.zg var1 = new com.aspose.cells.b.a.b.zg(this.e.b(), 0.7F * this.e.h(), this.e.k());
         return var1;
      }
   }

   public void a(com.aspose.cells.b.a.b.zg var1) {
      this.e = var1;
   }

   public com.aspose.cells.b.a.b.zg d() {
      if (this.e == null) {
         if (this.a instanceof zakx) {
            this.e = ((zakx)this.a).c().f();
         } else if (this.a instanceof ziq) {
            this.e = ((ziq)this.a).b();
         } else {
            this.e = zbuk.a(this.d.ac());
         }
      }

      return this.e;
   }

   public zagt a() {
      return this.c;
   }

   public Color e() {
      if (this.f) {
         if (this.a instanceof zakx) {
            return ((zakx)this.a).c().j();
         } else {
            return this.a instanceof ziq ? ((ziq)this.a).c() : this.d.ad();
         }
      } else {
         return this.g;
      }
   }

   public void a(Color var1) {
      this.f = false;
      this.g = var1;
   }

   public int f() {
      return this.h;
   }

   String g() {
      return this.i;
   }

   void a(String var1) {
      this.i = var1;
   }

   public zahq h() {
      return this.j;
   }

   public void a(zahq var1) {
      for(int var2 = 0; var2 < var1.getCount(); ++var2) {
         zahp var3 = var1.a(var2);
         this.j.a(var3.a(), this.c(), this.e(), this.a(), 2);
      }

   }

   boolean i() {
      return this.j.getCount() > 0;
   }

   int j() {
      return this.k;
   }

   void a(int var1) {
      this.k = var1;
   }

   zbcq k() {
      return this.l;
   }

   void a(zbcq var1) {
      this.l = var1;
   }

   zbtu l() {
      return this.m;
   }

   void a(zbtu var1) {
      this.m = var1;
   }

   protected void finalize() throws Exception {
      this.b(false);
   }

   public void m() {
      this.b(true);
      com.aspose.cells.b.a.zg.a(this);
   }

   protected void b(boolean var1) {
      if (!this.n) {
         if (var1 && this.e != null) {
            this.e.n();
         }

         this.n = true;
      }

   }
}
